﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Program
    {
            static void Main(string[] args)
            {
                Console.WriteLine("请输入机器人:(传菜/炒菜)");
                string a = Console.ReadLine();
                judge(a);


            }
            public static Robot judge(string a)
            {
                Robot r;
                switch (a)
                {
                    case "炒菜":
                        r = new CookRobot("炒菜机器人", DishNames.东坡肉);
                        r.Working();
                        break;
                    case "传菜":
                        r = new DeliveryRobot("传菜机器人", "24");
                        r.Working();
                        break;
                    default:
                        r = new CookRobot("炒菜机器人", DishNames.东坡肉);
                        r.Working();
                        break;
                }
                return r;
            }
        }
    }

